<?php get_header(); ?>

	<div id="content" class="narrowcolumn">
<?php if( !is_ads_free() ): ?>
	<div style="padding:10px;">
	<script type="text/javascript"><!--
	google_ad_client = "<?php google_pub_id()?>";
	google_ad_width = 468;
	google_ad_height = 60;
	google_ad_format = "468x60_as";
	google_color_border = "FFFFFF";
	google_color_bg = "FFFFFF";
	google_color_link = "445588";
	google_color_url = "000000";
	google_color_text = "000000";
	//--></script>

	<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
	</div>
<?php endif; ?>
	<?php if (have_posts()) : ?>
		
		<?php while (have_posts()) : the_post(); ?>
				
			<div class="postwrapper wideposts" id="post-<?php the_ID(); ?>">
			  <div class="title">
				<small>Posted by: <strong><?php the_author() ?></strong> | <?php the_time(get_option('date_format')) ?> <?php edit_post_link('(edit)'); ?></small>
				<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
			  </div>
			  <div class="post">
			    <div class="entry">
			      <?php the_content(__('Read More...')); ?>
		        </div>
			    <div class="postinfo">
			      <p class="com"><?php comments_popup_link('No Comments yet...', '1 Comment', '% Comments'); ?></p>
				  <p>Categories:</p>
				  	<ul class="catlist">
                      <li><?php the_category('</li><li>') ?></li>
			    </div>
					<p><?php the_tags('Tags: ', ', ', '<br />'); ?></p>
			  </div>
			</div>
	
		<?php endwhile; ?>
		<p align="center"><?php posts_nav_link(' - ','&#171; Newer Posts','Older Posts &#187;') ?></p>
	<?php else : ?>

		<div class="title">
		  <h2>Not Found</h2>
		</div>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>
	
	<div class="title">
	  <h2>Categories</h2>
	</div>
	<div class="post">
	  <ul class="catlist">
        <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>	
	  </ul>
	</div>
  </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
